package www.notice;

import www.member.sqlmap.GetSqlMapClient;

import com.ibatis.sqlmap.client.SqlMapClient;

public class NoticeMgrUpdateTest {

    public static void main(String[] args) throws Exception{
        SqlMapClient sqlMapClient = GetSqlMapClient.get();
        
        NoticeMgr mgr= new NoticeMgr();
        
        NoticeDTO dto= new NoticeDTO();
        dto.setNoticeno(1);
        dto.setNickname(" 테스터 ");
        dto.setTitle(" 업데이트 ");
        dto.setContents("update");
        dto.setProfilephoto("profile.jpg2");
        dto.setNoticedate("2014-10-26");
        
        // ���ڵ� �߰� ���н� Exception�� �߻��ϸ�
        // �����ϸ� null�� ���ϵ˴ϴ�.
        Object obj = mgr.update(dto);
        System.out.println(obj);

    }

}
